
"""
generate time string
"""

import time

def theTime(env, start_response):
    result = time.ctime()
    start_response("200 OK", [('Content-Type', 'text/html')])
    return [result]

__wsgi__ = theTime

def test():
    from whiff.middleware import misc
    env = {}
    out = theTime(env, misc.ignore)
    txt = "".join(list(out))
    print repr(txt)

if __name__=="__main__":
    test()

